﻿using Application.AppService.IConfig;
using Domain;
using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class EIAppService : IEngage_interviewAppService
    {
        private readonly IEngage_interviewRepository eIRepository;

        public EIAppService(IEngage_interviewRepository eIRepository)
        {
            this.eIRepository = eIRepository;
        }
        public Task<bool> AddEIAsync(Engage_interview ei)
        {
           return eIRepository.AddEIAsync(ei);
        }

        public EIFenYe DateEIAsync(int page, int pageSize, int zt)
        {
           return eIRepository.DateEIAsync(page, pageSize, zt);
        }

        public Task<bool> DeleteEIAsync(int id)
        {
           return eIRepository.DeleteEIAsync(id);
        }

        public Task<Engage_interview> GetEIByNameAsync(int id)
        {
            return eIRepository.GetEIByNameAsync(id);
        }

        public Task<bool> UpdateEIAsync(Engage_interview ei)
        {
           return eIRepository.UpdateEIAsync(ei);
        }

        public Task<bool> UpdateEISAsync(Engage_interview ei)
        {
            return eIRepository.UpdateEISAsync(ei);
        }
    }
}
